﻿using System;
using System.Windows.Forms;

using SampleApplication.model;

namespace SampleApplication.view
{
    public partial class DashboardView : Form, IDashboardView
    {
        public DashboardView()
        {
            InitializeComponent();
        }

        public Principal Principal
        {
            set {
                usernameValue.Text = value.Username;
                passwordValue.Text = value.Password;
            }
        }

        public void DisplayView()
        {
            Show();
            Activate();
        }

        public void CloseView()
        {
            Close();
        }
    }
}